<ion-view view-title="添加计划" ng-init="initAddPlan()">
  <ion-content class="content has-header" padding="true">
    <ion-list>
      <ion-item class="item item-divider"></ion-item>
      <ion-item class="item item-input">
        <span class="input-label">计划名称</span>
        <input type="text" ng-model="plan.name" placeholder="计划的标题">
      </ion-item>
      <ion-item class="item item-input">
        <span class="input-label">计划工时</span>
        <input type="number" ng-model="plan.hours" placeholder="计划所用时间">
      </ion-item>
      <ion-item class="item item-input item-stacked-label">
        <span class="input-label">计划内容</span>
        <textarea placeholder="计划的详细内容信息" rows="3" ng-model="plan.content"></textarea>
      </ion-item>
      <ion-item class="item item-divider"></ion-item>

      <ion-item class="item item-icon-right" href="#/tab/plan/child/list/">
        子计划
        <span class="badge badge-assertive">{{plan.childPlans.length}}</span>
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>
      <ion-item class="item item-icon-right" href="#/tab/plan/contacts/list/">
        邀请成员
        <span class="badge badge-assertive">{{plan.contacts.length}}</span>
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>

    </ion-list>
  </ion-content>
</ion-view>
